<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/tag.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增用户</title>
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/jsp/common_css.jsp"%>
<%@ include file="/WEB-INF/jsp/common_js.jsp"%>

<script type="text/javascript">

	
	function loginsubmit() {
		$("#itemForm").submit();

	}
	
</SCRIPT>
</head>
<body> 
<!-- 错误信息 -->
<c:forEach items="${errors }" var="error">
 ${error.defaultMessage }<br/>

</c:forEach>
<form id="itemForm" action="${baseurl }user/addUser.action" method="post" >
<table width="100%" border=1>
<tr>
	<td>姓名</td>
	<td><input type="text" name="username" /></td>
</tr>
<tr>
	<td>账号</td>
	<td><input type="text" name="usercode" /></td>
</tr>
<tr>
<td>身份证号</td>
<td><input type="text" name="idNum" /></td>
</tr>
<tr>
	<td>密码</td>
	<td><input type="text" name="password" /></td>
</tr>
<tr>
	<td>电话</td>
	<td><input type="text" name="customerphone" /></td>
</tr>
<tr>
<td>身份</td>
<td><input type="radio" name="roleName" value="user" >用户
    <input type="radio" name="roleName" value="admin">管理员</td>
</tr>
<tr>
	<td>邮箱地址</td>
	<td>
	<input type="text" name="customeraddress" />	
	</td>
</tr>

<td colspan="2" align="center"><input type="submit" value="提交" onclick="loginsubmit()"/>
</td>
</tr>
</table>

</form>
</body>

</html>